package com.smile.api;

import com.smile.commons.page.R;
import com.smile.model.request.GetAirportByIdRequest;
import com.smile.model.response.GetAirportByIdResponse;
import com.smile.model.response.GetAirportByIdsResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@FeignClient(name = "smile-plus-standalone-device", contextId = "airport", path = "/api/device")
public interface AirportApi {

    @PostMapping("/airport/getAirportById")
    R<GetAirportByIdResponse> getAirportById(@RequestBody GetAirportByIdRequest getAirportByIdRequest);

    @PostMapping("/airport/getAirportByIds")
    R<Map<Long, GetAirportByIdsResponse>> getAirportByIds(@RequestBody List<Long> ids);

    @PostMapping("/airport/deleteAirportByOrganizationId")
    R<Void> deleteAirportByOrganizationId(@RequestBody Long id);

}
